<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>移动端页面开发流程 | 课程介绍</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../08/mds/section05.html" />
    
    
    <link rel="prev" href="../../08/mds/section02.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="6"
        data-chapter-title="移动端页面开发流程"
        data-filepath="08/mds/section04.md"
        data-basepath="../.."
        data-revision="Sat Nov 19 2016 16:06:47 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        课程介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="01/index.html">
            
                
                    <a href="../../01/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="01/mds/section01.html">
            
                
                    <a href="../../01/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        html概述和基本结构
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="01/mds/section02.html">
            
                
                    <a href="../../01/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        html标题
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="01/mds/section03.html">
            
                
                    <a href="../../01/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        html段落、换行与字符实体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="01/mds/section04.html">
            
                
                    <a href="../../01/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        html块、含样式的标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="01/mds/section05.html">
            
                
                    <a href="../../01/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        html图像、绝对路径和相对路径
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="01/mds/section06.html">
            
                
                    <a href="../../01/mds/section06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        html链接
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="01/mds/section07.html">
            
                
                    <a href="../../01/mds/section07.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        html列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="01/mds/section08.html">
            
                
                    <a href="../../01/mds/section08.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        html表格及传统布局
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="01/mds/section09.html">
            
                
                    <a href="../../01/mds/section09.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        html表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="01/mds/section10.html">
            
                
                    <a href="../../01/mds/section10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        html内嵌框架
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="02/index.html">
            
                
                    <a href="../../02/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="01/mds/section12.html">
            
                
                    <a href="../../01/mds/section12.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        css基本语法及页面引用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="01/mds/section13.html">
            
                
                    <a href="../../01/mds/section13.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        css文本设置
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="01/mds/section14.html">
            
                
                    <a href="../../01/mds/section14.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        css颜色表示法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="02/mds/section003.html">
            
                
                    <a href="../../02/mds/section003.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        css选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="02/mds/section01.html">
            
                
                    <a href="../../02/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        css盒模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="02/mds/section004.html">
            
                
                    <a href="../../02/mds/section004.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        css元素溢出
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="02/mds/section02.html">
            
                
                    <a href="../../02/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        块元素、内联元素、内联块元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="02/mds/section03.html">
            
                
                    <a href="../../02/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="02/mds/section04.html">
            
                
                    <a href="../../02/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="02/mds/section05.html">
            
                
                    <a href="../../02/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        background属性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="02/mds/section06.html">
            
                
                    <a href="../../02/mds/section06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.11.</b>
                        
                        特征布局实例讲习
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="03-04/index.html">
            
                
                    <a href="../../03-04/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        Photoshop
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="03-04/mds/section01.html">
            
                
                    <a href="../../03-04/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        常用图片格式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="03-04/mds/section02.html">
            
                
                    <a href="../../03-04/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        photoshop常用图片处理技巧
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="03-04/mds/section03.html">
            
                
                    <a href="../../03-04/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        ps效果图制作实例
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="05/mds/section02.html">
            
                
                    <a href="../../05/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        photoshop批量切图技巧
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="05/mds/section03.html">
            
                
                    <a href="../../05/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.5.</b>
                        
                        Photoshop制作雪碧图技巧
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="05/mds/section04.html">
            
                
                    <a href="../../05/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        前端页面开发流程
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="06-07/index.html">
            
                
                    <a href="../../06-07/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        HTML5与CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="5.1" data-path="06-07/mds/section00.html">
            
                
                    <a href="../../06-07/mds/section00.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.1.</b>
                        
                        CSS权重
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="06-07/mds/section01.html">
            
                
                    <a href="../../06-07/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.2.</b>
                        
                        CSS3新增选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="06-07/mds/section02.html">
            
                
                    <a href="../../06-07/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.3.</b>
                        
                        CSS3圆角、阴影、rgba
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="06-07/mds/section03.html">
            
                
                    <a href="../../06-07/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.4.</b>
                        
                        CSS3 transition动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="06-07/mds/section04.html">
            
                
                    <a href="../../06-07/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.5.</b>
                        
                        CSS3 transform变换
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="06-07/mds/section05.html">
            
                
                    <a href="../../06-07/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.6.</b>
                        
                        CSS3 animation动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.7" data-path="08/mds/section03.html">
            
                
                    <a href="../../08/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.7.</b>
                        
                        CSS浏览器前缀
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.8" data-path="08/mds/section00.html">
            
                
                    <a href="../../08/mds/section00.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.8.</b>
                        
                        HTML5新结构标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.9" data-path="08/mds/section01.html">
            
                
                    <a href="../../08/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.9.</b>
                        
                        HTML5 新增表单控件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5.10" data-path="08/mds/section02.html">
            
                
                    <a href="../../08/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.10.</b>
                        
                        HTML5 音频和视频
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="6" data-path="08/mds/section04.html">
            
                
                    <a href="../../08/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.</b>
                        
                        移动端页面开发流程
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="6.1" data-path="08/mds/section05.html">
            
                
                    <a href="../../08/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>6.1.</b>
                        
                        移动端布局实例
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="7" data-path="09/index.html">
            
                
                    <a href="../../09/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.</b>
                        
                        JavaScript
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="7.1" data-path="09/mds/section00.html">
            
                
                    <a href="../../09/mds/section00.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.1.</b>
                        
                        JavaScript介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="09/mds/section01.html">
            
                
                    <a href="../../09/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.2.</b>
                        
                        JavaScript嵌入页面的方式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="09/mds/section02.html">
            
                
                    <a href="../../09/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.3.</b>
                        
                        变量
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="09/mds/section03.html">
            
                
                    <a href="../../09/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.4.</b>
                        
                        获取元素方法一
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="09/mds/section04.html">
            
                
                    <a href="../../09/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.5.</b>
                        
                        操作元素属性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="09/mds/section05.html">
            
                
                    <a href="../../09/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.6.</b>
                        
                        函数
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.7" data-path="10/mds/section00.html">
            
                
                    <a href="../../10/mds/section00.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.7.</b>
                        
                        条件语句
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.8" data-path="10/mds/section01.html">
            
                
                    <a href="../../10/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.8.</b>
                        
                        数组及操作方法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.9" data-path="10/mds/section02.html">
            
                
                    <a href="../../10/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.9.</b>
                        
                        循环语句
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.10" data-path="10/mds/section03.html">
            
                
                    <a href="../../10/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.10.</b>
                        
                        Javascript组成
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.11" data-path="10/mds/section04.html">
            
                
                    <a href="../../10/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.11.</b>
                        
                        字符串处理方法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.12" data-path="10/mds/section05.html">
            
                
                    <a href="../../10/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.12.</b>
                        
                        调试程序的方法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.13" data-path="10/mds/section06.html">
            
                
                    <a href="../../10/mds/section06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.13.</b>
                        
                        定时器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.14" data-path="11/mds/section00.html">
            
                
                    <a href="../../11/mds/section00.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.14.</b>
                        
                        类型转换
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.15" data-path="11/mds/section01.html">
            
                
                    <a href="../../11/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.15.</b>
                        
                        变量作用域
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.16" data-path="11/mds/section02.html">
            
                
                    <a href="../../11/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.16.</b>
                        
                        封闭函数
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.17" data-path="11/mds/section03.html">
            
                
                    <a href="../../11/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.17.</b>
                        
                        闭包
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.18" data-path="11/mds/section04.html">
            
                
                    <a href="../../11/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.18.</b>
                        
                        内置对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.19" data-path="11/mds/section05.html">
            
                
                    <a href="../../11/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.19.</b>
                        
                        面向对象
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="7.20" data-path="11/mds/section06.html">
            
                
                    <a href="../../11/mds/section06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>7.20.</b>
                        
                        新选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="8" data-path="12/index.html">
            
                
                    <a href="../../12/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.</b>
                        
                        JQuery
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="8.1" data-path="12/mds/section00.html">
            
                
                    <a href="../../12/mds/section00.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.1.</b>
                        
                        jquery介绍
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.2" data-path="12/mds/section01.html">
            
                
                    <a href="../../12/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.2.</b>
                        
                        jquery加载
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.3" data-path="12/mds/section02.html">
            
                
                    <a href="../../12/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.3.</b>
                        
                        jquery选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.4" data-path="12/mds/section03.html">
            
                
                    <a href="../../12/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.4.</b>
                        
                        jquery样式操作
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.5" data-path="12/mds/section04.html">
            
                
                    <a href="../../12/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.5.</b>
                        
                        jquery属性操作
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.6" data-path="12/mds/section05.html">
            
                
                    <a href="../../12/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.6.</b>
                        
                        绑定click事件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.7" data-path="12/mds/section06.html">
            
                
                    <a href="../../12/mds/section06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.7.</b>
                        
                        jquery特殊效果
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.8" data-path="12/mds/section07.html">
            
                
                    <a href="../../12/mds/section07.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.8.</b>
                        
                        jquery链式调用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.9" data-path="12/mds/section08.html">
            
                
                    <a href="../../12/mds/section08.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.9.</b>
                        
                        jquery动画
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.10" data-path="12/mds/section09.html">
            
                
                    <a href="../../12/mds/section09.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.10.</b>
                        
                        尺寸相关、滚动事件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.11" data-path="12/mds/section10.html">
            
                
                    <a href="../../12/mds/section10.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.11.</b>
                        
                        实例
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.12" data-path="13/mds/section00.html">
            
                
                    <a href="../../13/mds/section00.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.12.</b>
                        
                        jquery事件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.13" data-path="13/mds/section01.html">
            
                
                    <a href="../../13/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.13.</b>
                        
                        主动触发与自定义事件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.14" data-path="13/mds/section02.html">
            
                
                    <a href="../../13/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.14.</b>
                        
                        事件冒泡
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.15" data-path="13/mds/section03.html">
            
                
                    <a href="../../13/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.15.</b>
                        
                        事件委托
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.16" data-path="13/mds/section04.html">
            
                
                    <a href="../../13/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.16.</b>
                        
                        jquery元素节点操作
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.17" data-path="13/mds/section05.html">
            
                
                    <a href="../../13/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.17.</b>
                        
                        滚轮事件与函数节流
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.18" data-path="13/mds/section06.html">
            
                
                    <a href="../../13/mds/section06.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.18.</b>
                        
                        实例
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.19" data-path="14/mds/section00.html">
            
                
                    <a href="../../14/mds/section00.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.19.</b>
                        
                        json
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.20" data-path="14/mds/section01.html">
            
                
                    <a href="../../14/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.20.</b>
                        
                        ajax与jsonp
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.21" data-path="14/mds/section02.html">
            
                
                    <a href="../../14/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.21.</b>
                        
                        正则表达式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.22" data-path="14/mds/section03.html">
            
                
                    <a href="../../14/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.22.</b>
                        
                        本地存储
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.23" data-path="14/mds/section04.html">
            
                
                    <a href="../../14/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.23.</b>
                        
                        jqueryUI
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="8.24" data-path="14/mds/section05.html">
            
                
                    <a href="../../14/mds/section05.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>8.24.</b>
                        
                        实例
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="9" data-path="15-16/index.html">
            
                
                    <a href="../../15-16/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.</b>
                        
                        移动端库和框架
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="9.1" data-path="15-16/mds/section00.html">
            
                
                    <a href="../../15-16/mds/section00.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.1.</b>
                        
                        移动端js事件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9.2" data-path="15-16/mds/section01.html">
            
                
                    <a href="../../15-16/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.2.</b>
                        
                        zepto
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9.3" data-path="15-16/mds/section02.html">
            
                
                    <a href="../../15-16/mds/section02.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.3.</b>
                        
                        swiper
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="9.4" data-path="15-16/mds/section03.html">
            
                
                    <a href="../../15-16/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>9.4.</b>
                        
                        bootstrap
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="10" data-path="17/index.html">
            
                
                    <a href="../../17/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>10.</b>
                        
                        前端自动化及优化
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="10.1" data-path="17/mds/section01.html">
            
                
                    <a href="../../17/mds/section01.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>10.1.</b>
                        
                        less、sass、stylus
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="10.2" data-path="17/mds/section03.html">
            
                
                    <a href="../../17/mds/section03.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>10.2.</b>
                        
                        grunt、gulp
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="10.3" data-path="17/mds/section04.html">
            
                
                    <a href="../../17/mds/section04.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>10.3.</b>
                        
                        前端优化
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >课程介绍</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h2 id="&#x79FB;&#x52A8;&#x7AEF;&#x9875;&#x9762;&#x5E03;&#x5C40;">&#x79FB;&#x52A8;&#x7AEF;&#x9875;&#x9762;&#x5E03;&#x5C40;</h2>
<h3 id="&#x79FB;&#x52A8;&#x7AEF;app&#x5206;&#x7C7B;">&#x79FB;&#x52A8;&#x7AEF;app&#x5206;&#x7C7B;</h3>
<p>1&#x3001;Native App &#x539F;&#x751F;app&#x624B;&#x673A;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;<br>&#x4F7F;&#x7528;&#x539F;&#x751F;&#x7684;&#x8BED;&#x8A00;&#x5F00;&#x53D1;&#x7684;&#x624B;&#x673A;&#x5E94;&#x7528;&#xFF0C;Android&#x7CFB;&#x7EDF;&#x7528;&#x7684;&#x662F;java&#xFF0C;iOS&#x7CFB;&#x7EDF;&#x7528;&#x7684;&#x662F;object-C</p>
<p>2&#x3001;Hybrid App &#x6DF7;&#x5408;&#x578B;app&#x624B;&#x673A;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;<br>&#x6DF7;&#x5408;&#x4F7F;&#x7528;&#x539F;&#x751F;&#x7684;&#x7A0B;&#x5E8F;&#x548C;html5&#x9875;&#x9762;&#x5F00;&#x53D1;&#x7684;&#x624B;&#x673A;&#x5E94;&#x7528;  </p>
<p>3&#x3001;Web App &#x57FA;&#x4E8E;Web&#x7684;app&#x624B;&#x673A;&#x5E94;&#x7528;&#x7A0B;&#x5E8F;<br>&#x5B8C;&#x5168;&#x4F7F;&#x7528;html5&#x9875;&#x9762;&#x52A0;&#x524D;&#x7AEF;js&#x6846;&#x67B6;&#x5F00;&#x53D1;&#x7684;&#x624B;&#x673A;&#x5E94;&#x7528;  </p>
<h3 id="viewport-&#x89C6;&#x53E3;">Viewport &#x89C6;&#x53E3;</h3>
<p>&#x89C6;&#x53E3;&#x662F;&#x79FB;&#x52A8;&#x8BBE;&#x5907;&#x4E0A;&#x7528;&#x6765;&#x663E;&#x793A;&#x7F51;&#x9875;&#x7684;&#x533A;&#x57DF;&#xFF0C;&#x4E00;&#x822C;&#x4F1A;&#x6BD4;&#x79FB;&#x52A8;&#x8BBE;&#x5907;&#x53EF;&#x89C6;&#x533A;&#x57DF;&#x5927;&#xFF0C;&#x5BBD;&#x5EA6;&#x53EF;&#x80FD;&#x662F;980px&#x6216;&#x8005;1024px&#xFF0C;&#x76EE;&#x7684;&#x662F;&#x4E3A;&#x4E86;&#x663E;&#x793A;&#x4E0B;&#x6574;&#x4E2A;&#x4E3A;PC&#x7AEF;&#x8BBE;&#x8BA1;&#x7684;&#x7F51;&#x9875;&#xFF0C;&#x8FD9;&#x6837;&#x5E26;&#x6765;&#x7684;&#x540E;&#x679C;&#x662F;&#x79FB;&#x52A8;&#x7AEF;&#x4F1A;&#x51FA;&#x73B0;&#x6A2A;&#x5411;&#x6EDA;&#x52A8;&#x6761;&#xFF0C;&#x4E3A;&#x4E86;&#x907F;&#x514D;&#x8FD9;&#x79CD;&#x60C5;&#x51B5;&#xFF0C;&#x79FB;&#x52A8;&#x7AEF;&#x4F1A;&#x5C06;&#x89C6;&#x53E3;&#x7F29;&#x653E;&#x5230;&#x79FB;&#x52A8;&#x7AEF;&#x7A97;&#x53E3;&#x7684;&#x5927;&#x5C0F;&#x3002;&#x8FD9;&#x6837;&#x4F1A;&#x8BA9;&#x7F51;&#x9875;&#x4E0D;&#x5BB9;&#x6613;&#x89C2;&#x770B;&#xFF0C;&#x53EF;&#x4EE5;&#x7528; meta &#x6807;&#x7B7E;&#xFF0C;name=&#x201C;viewport &#x201D; &#x6765;&#x8BBE;&#x7F6E;&#x89C6;&#x53E3;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x5C06;&#x89C6;&#x53E3;&#x7684;&#x5927;&#x5C0F;&#x8BBE;&#x7F6E;&#x4E3A;&#x548C;&#x79FB;&#x52A8;&#x8BBE;&#x5907;&#x53EF;&#x89C6;&#x533A;&#x4E00;&#x6837;&#x7684;&#x5927;&#x5C0F;&#x3002;</p>
<p>&#x8BBE;&#x7F6E;&#x65B9;&#x6CD5;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>&lt;head&gt;
......
&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, user-scalable=no,
 initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0&quot;&gt;
......
&lt;/head&gt;
</code></pre><p>pc&#x7AEF;&#x4E0E;&#x79FB;&#x52A8;&#x7AEF;&#x6E32;&#x67D3;&#x7F51;&#x9875;&#x8FC7;&#x7A0B;&#xFF1A;<br><img src="images/render_process.jpg" alt="&#x793A;&#x4F8B;&#x56FE;&#x7247;"></p>
<h3 id="&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#xFF08;retina&#x5C4F;&#x5E55;&#xFF09;&#x6E05;&#x6670;&#x5EA6;&#x89E3;&#x51B3;&#x65B9;&#x6848;">&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#xFF08;retina&#x5C4F;&#x5E55;&#xFF09;&#x6E05;&#x6670;&#x5EA6;&#x89E3;&#x51B3;&#x65B9;&#x6848;</h3>
<p>&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#x6307;&#x7684;&#x662F;&#x5C4F;&#x5E55;&#x7684;&#x7269;&#x7406;&#x50CF;&#x7D20;&#x5BC6;&#x5EA6;&#x66F4;&#x9AD8;&#x7684;&#x5C4F;&#x5E55;&#xFF0C;&#x7269;&#x7406;&#x50CF;&#x7D20;&#x53EF;&#x4EE5;&#x7406;&#x89E3;&#x4E3A;&#x5C4F;&#x5E55;&#x4E0A;&#x7684;&#x4E00;&#x4E2A;&#x53D1;&#x5149;&#x70B9;&#xFF0C;&#x65E0;&#x6570;&#x53D1;&#x5149;&#x7684;&#x70B9;&#x7EC4;&#x6210;&#x7684;&#x5C4F;&#x5E55;&#xFF0C;&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#x6BD4;&#x4E00;&#x822C;&#x5C4F;&#x5E55;&#x7684;&#x7269;&#x7406;&#x50CF;&#x7D20;&#x70B9;&#x66F4;&#x5C0F;&#xFF0C;&#x5E38;&#x89C1;&#x6709;2&#x500D;&#x7684;&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#x548C;3&#x500D;&#x7684;&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#xFF0C;2&#x500D;&#x7684;&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#xFF0C;&#x5B83;&#x7684;&#x7269;&#x7406;&#x50CF;&#x7D20;&#x70B9;&#x5927;&#x5C0F;&#x662F;&#x4E00;&#x822C;&#x5C4F;&#x5E55;&#x7684;1/4,3&#x500D;&#x7684;&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#xFF0C;&#x5B83;&#x7684;&#x7269;&#x7406;&#x50CF;&#x7D20;&#x70B9;&#x5927;&#x5C0F;&#x662F;&#x4E00;&#x822C;&#x5C4F;&#x5E55;&#x7684;1/9&#x3002;</p>
<p>&#x56FE;&#x50CF;&#x5728;&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#x4E0A;&#x663E;&#x793A;&#x7684;&#x5927;&#x5C0F;&#x548C;&#x5728;&#x4E00;&#x822C;&#x5C4F;&#x5E55;&#x4E0A;&#x663E;&#x793A;&#x7684;&#x5927;&#x5C0F;&#x4E00;&#x6837;&#xFF0C;&#x4F46;&#x662F;&#x7531;&#x4E8E;&#x89C6;&#x7F51;&#x819C;&#x5C4F;&#x5E55;&#x7684;&#x7269;&#x7406;&#x50CF;&#x7D20;&#x70B9;&#x6BD4;&#x4E00;&#x822C;&#x7684;&#x5C4F;&#x5E55;&#x5C0F;&#xFF0C;&#x56FE;&#x50CF;&#x5728;&#x4E0A;&#x9762;&#x597D;&#x50CF;&#x662F;&#x88AB;&#x653E;&#x5927;&#x4E86;&#xFF0C;&#x56FE;&#x50CF;&#x4F1A;&#x53D8;&#x5F97;&#x6A21;&#x7CCA;&#xFF0C;&#x4E3A;&#x4E86;&#x89E3;&#x51B3;&#x8FD9;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x6BD4;&#x539F;&#x6765;&#x5927;&#x4E00;&#x500D;&#x7684;&#x56FE;&#x50CF;&#xFF0C;&#x7136;&#x540E;&#x7528;css&#x6837;&#x5F0F;&#x5F3A;&#x5236;&#x628A;&#x56FE;&#x50CF;&#x7684;&#x5C3A;&#x5BF8;&#x8BBE;&#x4E3A;&#x539F;&#x6765;&#x56FE;&#x50CF;&#x5C3A;&#x5BF8;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x89E3;&#x51B3;&#x6A21;&#x7CCA;&#x7684;&#x95EE;&#x9898;&#x3002;</p>
<p>&#x6E05;&#x6670;&#x5EA6;&#x89E3;&#x51B3;&#x8FC7;&#x7A0B;&#x793A;&#x610F;&#x56FE;&#xFF1A;<br><img src="images/retina.jpg" alt="&#x793A;&#x4F8B;&#x56FE;&#x7247;"></p>
<p>&#x80CC;&#x666F;&#x56FE;&#x5F3A;&#x5236;&#x6539;&#x53D8;&#x5927;&#x5C0F;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;background&#x65B0;&#x5C5E;&#x6027;</p>
<p><strong> background&#x65B0;&#x5C5E;&#x6027; </strong><br>background-size:</p>
<ul>
<li>length&#xFF1A;&#x7528;&#x957F;&#x5EA6;&#x503C;&#x6307;&#x5B9A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5927;&#x5C0F;&#x3002;&#x4E0D;&#x5141;&#x8BB8;&#x8D1F;&#x503C;&#x3002;</li>
<li>percentage&#xFF1A;&#x7528;&#x767E;&#x5206;&#x6BD4;&#x6307;&#x5B9A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x5927;&#x5C0F;&#x3002;&#x4E0D;&#x5141;&#x8BB8;&#x8D1F;&#x503C;&#x3002;</li>
<li>auto&#xFF1A;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x7684;&#x771F;&#x5B9E;&#x5927;&#x5C0F;&#x3002;</li>
<li>cover&#xFF1A;&#x5C06;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x7B49;&#x6BD4;&#x7F29;&#x653E;&#x5230;&#x5B8C;&#x5168;&#x8986;&#x76D6;&#x5BB9;&#x5668;&#xFF0C;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x6709;&#x53EF;&#x80FD;&#x8D85;&#x51FA;&#x5BB9;&#x5668;&#x3002;</li>
<li>contain&#xFF1A;&#x5C06;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x7B49;&#x6BD4;&#x7F29;&#x653E;&#x5230;&#x5BBD;&#x5EA6;&#x6216;&#x9AD8;&#x5EA6;&#x4E0E;&#x5BB9;&#x5668;&#x7684;&#x5BBD;&#x5EA6;&#x6216;&#x9AD8;&#x5EA6;&#x76F8;&#x7B49;&#xFF0C;&#x80CC;&#x666F;&#x56FE;&#x50CF;&#x59CB;&#x7EC8;&#x88AB;&#x5305;&#x542B;&#x5728;&#x5BB9;&#x5668;&#x5185;&#x3002;</li>
</ul>
<h3 id="pc&#x53CA;&#x79FB;&#x52A8;&#x7AEF;&#x9875;&#x9762;&#x9002;&#x914D;&#x65B9;&#x6CD5;">PC&#x53CA;&#x79FB;&#x52A8;&#x7AEF;&#x9875;&#x9762;&#x9002;&#x914D;&#x65B9;&#x6CD5;</h3>
<p>&#x8BBE;&#x5907;&#x5C4F;&#x5E55;&#x6709;&#x591A;&#x79CD;&#x4E0D;&#x540C;&#x7684;&#x5206;&#x8FA8;&#x7387;&#xFF0C;&#x9875;&#x9762;&#x9002;&#x914D;&#x65B9;&#x6848;&#x6709;&#x5982;&#x4E0B;&#x51E0;&#x79CD;&#xFF1A;</p>
<p>1&#x3001;&#x5168;&#x9002;&#x914D;&#xFF1A;&#x6D41;&#x4F53;&#x5E03;&#x5C40;+&#x54CD;&#x5E94;&#x5F0F;&#x5E03;&#x5C40;<br>2&#x3001;&#x79FB;&#x52A8;&#x7AEF;&#x9002;&#x914D;&#xFF1A;  </p>
<ul>
<li>&#x6D41;&#x4F53;&#x5E03;&#x5C40;+&#x5C11;&#x91CF;&#x54CD;&#x5E94;&#x5F0F;  </li>
<li>&#x57FA;&#x4E8E;rem&#x7684;&#x5E03;&#x5C40;   </li>
<li>&#x5F39;&#x6027;&#x76D2;&#x6A21;&#x578B;       </li>
</ul>
<h3 id="&#x6D41;&#x4F53;&#x5E03;&#x5C40;">&#x6D41;&#x4F53;&#x5E03;&#x5C40;</h3>
<p>&#x6D41;&#x4F53;&#x5E03;&#x5C40;&#xFF0C;&#x5C31;&#x662F;&#x4F7F;&#x7528;&#x767E;&#x5206;&#x6BD4;&#x6765;&#x8BBE;&#x7F6E;&#x5143;&#x7D20;&#x7684;&#x5BBD;&#x5EA6;&#xFF0C;&#x5143;&#x7D20;&#x7684;&#x9AD8;&#x5EA6;&#x6309;&#x5B9E;&#x9645;&#x9AD8;&#x5EA6;&#x5199;&#x56FA;&#x5B9A;&#x503C;&#xFF0C;&#x6D41;&#x4F53;&#x5E03;&#x5C40;&#x4E2D;&#xFF0C;&#x5143;&#x7D20;&#x7684;&#x8FB9;&#x7EBF;&#x65E0;&#x6CD5;&#x7528;&#x767E;&#x5206;&#x6BD4;&#xFF0C;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x6837;&#x5F0F;&#x4E2D;&#x7684;&#x8BA1;&#x7B97;&#x51FD;&#x6570; calc() &#x6765;&#x8BBE;&#x7F6E;&#x5BBD;&#x5EA6;&#xFF0C;&#x6216;&#x8005;&#x4F7F;&#x7528; box-sizing &#x5C5E;&#x6027;&#x5C06;&#x76D2;&#x5B50;&#x8BBE;&#x7F6E;&#x4E3A;&#x4ECE;&#x8FB9;&#x7EBF;&#x8BA1;&#x7B97;&#x76D2;&#x5B50;&#x5C3A;&#x5BF8;&#x3002;</p>
<p><strong> calc() </strong><br>&#x53EF;&#x4EE5;&#x901A;&#x8FC7;&#x8BA1;&#x7B97;&#x7684;&#x65B9;&#x5F0F;&#x7ED9;&#x5143;&#x7D20;&#x52A0;&#x5C3A;&#x5BF8;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;
width&#xFF1A;calc(25% - 4px);</p>
<p><strong> box-sizing </strong><br>1&#x3001;content-box  &#x9ED8;&#x8BA4;&#x7684;&#x76D2;&#x5B50;&#x5C3A;&#x5BF8;&#x8BA1;&#x7B97;&#x65B9;&#x5F0F;<br>2&#x3001;border-box   &#x7F6E;&#x76D2;&#x5B50;&#x7684;&#x5C3A;&#x5BF8;&#x8BA1;&#x7B97;&#x65B9;&#x5F0F;&#x4E3A;&#x4ECE;&#x8FB9;&#x6846;&#x5F00;&#x59CB;&#xFF0C;&#x76D2;&#x5B50;&#x7684;&#x5C3A;&#x5BF8;&#xFF0C;&#x8FB9;&#x6846;&#x548C;&#x5185;&#x586B;&#x5145;&#x7B97;&#x5728;&#x76D2;&#x5B50;&#x5C3A;&#x5BF8;&#x5185;</p>
<h3 id="&#x54CD;&#x5E94;&#x5F0F;&#x5E03;&#x5C40;">&#x54CD;&#x5E94;&#x5F0F;&#x5E03;&#x5C40;</h3>
<p>&#x54CD;&#x5E94;&#x5F0F;&#x5E03;&#x5C40;&#x5C31;&#x662F;&#x4F7F;&#x7528;&#x5A92;&#x4F53;&#x67E5;&#x8BE2;&#x7684;&#x65B9;&#x5F0F;&#xFF0C;&#x901A;&#x8FC7;&#x67E5;&#x8BE2;&#x6D4F;&#x89C8;&#x5668;&#x5BBD;&#x5EA6;&#xFF0C;&#x4E0D;&#x540C;&#x7684;&#x5BBD;&#x5EA6;&#x5E94;&#x7528;&#x4E0D;&#x540C;&#x7684;&#x6837;&#x5F0F;&#x5757;&#xFF0C;&#x6BCF;&#x4E2A;&#x6837;&#x5F0F;&#x5757;&#x5BF9;&#x5E94;&#x7684;&#x662F;&#x8BE5;&#x5BBD;&#x5EA6;&#x4E0B;&#x7684;&#x5E03;&#x5C40;&#x65B9;&#x5F0F;&#xFF0C;&#x4ECE;&#x800C;&#x5B9E;&#x73B0;&#x54CD;&#x5E94;&#x5F0F;&#x5E03;&#x5C40;&#x3002;&#x54CD;&#x5E94;&#x5F0F;&#x5E03;&#x5C40;&#x7684;&#x9875;&#x9762;&#x53EF;&#x4EE5;&#x9002;&#x914D;&#x591A;&#x79CD;&#x7EC8;&#x7AEF;&#x5C4F;&#x5E55;&#xFF08;pc&#x3001;&#x5E73;&#x677F;&#x3001;&#x624B;&#x673A;&#xFF09;&#x3002;</p>
<p>&#x76F8;&#x5E94;&#x5E03;&#x5C40;&#x7684;&#x4F2A;&#x4EE3;&#x7801;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>@media (max-width:960px){
    .left_con{width:58%;}
    .right_con{width:38%;}
}
@media (max-width:768px){
    .left_con{width:100%;}
    .right_con{width:100%;}
}
</code></pre><h3 id="&#x57FA;&#x4E8E;rem&#x7684;&#x5E03;&#x5C40;">&#x57FA;&#x4E8E;rem&#x7684;&#x5E03;&#x5C40;</h3>
<p>&#x9996;&#x5148;&#x4E86;&#x89E3;em&#x5355;&#x4F4D;&#xFF0C;em&#x5355;&#x4F4D;&#x662F;&#x53C2;&#x7167;&#x5143;&#x7D20;&#x81EA;&#x8EAB;&#x7684;&#x6587;&#x5B57;&#x5927;&#x5C0F;&#x6765;&#x8BBE;&#x7F6E;&#x5C3A;&#x5BF8;&#xFF0C;rem&#x6307;&#x7684;&#x662F;&#x53C2;&#x7167;&#x6839;&#x8282;&#x70B9;&#x7684;&#x6587;&#x5B57;&#x5927;&#x5C0F;&#xFF0C;&#x6839;&#x8282;&#x70B9;&#x6307;&#x7684;&#x662F;html&#x6807;&#x7B7E;&#xFF0C;&#x8BBE;&#x7F6E;html&#x6807;&#x7B7E;&#x7684;&#x6587;&#x5B57;&#x5927;&#x5C0F;&#xFF0C;&#x5176;&#x4ED6;&#x7684;&#x5143;&#x7D20;&#x76F8;&#x5173;&#x5C3A;&#x5BF8;&#x8BBE;&#x7F6E;&#x7528;rem&#xFF0C;&#x8FD9;&#x6837;&#xFF0C;&#x6240;&#x6709;&#x5143;&#x7D20;&#x90FD;&#x6709;&#x4E86;&#x7EDF;&#x4E00;&#x7684;&#x53C2;&#x7167;&#x6807;&#x51C6;&#xFF0C;&#x6539;&#x53D8;html&#x6587;&#x5B57;&#x7684;&#x5927;&#x5C0F;&#xFF0C;&#x5C31;&#x4F1A;&#x6539;&#x53D8;&#x6240;&#x6709;&#x5143;&#x7D20;&#x7528;rem&#x8BBE;&#x7F6E;&#x7684;&#x5C3A;&#x5BF8;&#x5927;&#x5C0F;&#x3002;</p>
<p><strong> cssrem&#x5B89;&#x88C5; </strong>  </p>
<p>cssrem&#x63D2;&#x4EF6;&#x53EF;&#x4EE5;&#x52A8;&#x6001;&#x5730;&#x5C06;px&#x5C3A;&#x5BF8;&#x6362;&#x7B97;&#x6210;rem&#x5C3A;&#x5BF8;</p>
<p>&#x4E0B;&#x8F7D;&#x672C;&#x9879;&#x76EE;&#xFF0C;&#x6BD4;&#x5982;&#xFF1A;git clone <a href="https://github.com/flashlizi/cssrem" target="_blank">https://github.com/flashlizi/cssrem</a>
&#x8FDB;&#x5165;packages&#x76EE;&#x5F55;&#xFF1A;Sublime Text -&gt; Preferences -&gt; Browse Packages...
&#x590D;&#x5236;&#x4E0B;&#x8F7D;&#x7684;cssrem&#x76EE;&#x5F55;&#x5230;&#x521A;&#x624D;&#x7684;packges&#x76EE;&#x5F55;&#x91CC;&#x3002;
&#x91CD;&#x542F;Sublime Text&#x3002;</p>
<p>&#x914D;&#x7F6E;&#x53C2;&#x6570;
&#x53C2;&#x6570;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF1A;Sublime Text -&gt; Preferences -&gt; Package Settings -&gt; cssrem
px_to_rem - px&#x8F6C;rem&#x7684;&#x5355;&#x4F4D;&#x6BD4;&#x4F8B;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;40&#x3002;
max_rem_fraction_length - px&#x8F6C;rem&#x7684;&#x5C0F;&#x6570;&#x90E8;&#x5206;&#x7684;&#x6700;&#x5927;&#x957F;&#x5EA6;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A;6&#x3002;
available_file_types - &#x542F;&#x7528;&#x6B64;&#x63D2;&#x4EF6;&#x7684;&#x6587;&#x4EF6;&#x7C7B;&#x578B;&#x3002;&#x9ED8;&#x8BA4;&#x4E3A;&#xFF1A;[&quot;.css&quot;, &quot;.less&quot;, &quot;.sass&quot;]&#x3002;</p>
<h3 id="&#x5F39;&#x6027;&#x76D2;&#x6A21;&#x578B;&#x5E03;&#x5C40;">&#x5F39;&#x6027;&#x76D2;&#x6A21;&#x578B;&#x5E03;&#x5C40;</h3>
<p>1&#x3001;&#x5BB9;&#x5668;&#x5C5E;&#x6027;<br>display : flex<br>&#x58F0;&#x660E;&#x4F7F;&#x7528;&#x5F39;&#x6027;&#x76D2;&#x5E03;&#x5C40;  </p>
<p>flex-direction :  row | row-reverse | column | column-reverse<br>&#x786E;&#x5B9A;&#x5B50;&#x5143;&#x7D20;&#x6392;&#x5217;&#x7684;&#x65B9;&#x5411;  </p>
<p>flex-wrap :  nowrap | wrap | wrap-reverse<br>&#x5143;&#x7D20;&#x8D85;&#x8FC7;&#x7236;&#x5BB9;&#x5668;&#x5C3A;&#x5BF8;&#x65F6;&#x662F;&#x5426;&#x6362;&#x884C;  </p>
<p>flex-flow :  flex-direction | flex-wrap<br>&#x540C;&#x65F6;&#x8BBE;&#x7F6E;flex-direction &#x548C; flex-wrap  </p>
<p>justify-content :  flex-start | flex-end | center | space-between | space-around<br>&#x5B50;&#x5143;&#x7D20;&#x7684;&#x5C3A;&#x5BF8;&#x786E;&#x5B9A;&#x4E4B;&#x540E;&#xFF0C;&#x7528;&#x6B64;&#x5C5E;&#x6027;&#x6765;&#x8BBE;&#x7F6E;flex-direction&#x5B9A;&#x4E49;&#x65B9;&#x5411;&#x4E0A;&#x7684;&#x5206;&#x5E03;&#x65B9;&#x5F0F;  </p>
<p>align-items : flex-start | flex-end | center | baseline | stretch<br>&#x5B50;&#x5143;&#x7D20;&#x7684;&#x5C3A;&#x5BF8;&#x786E;&#x5B9A;&#x4E4B;&#x540E;&#xFF0C;&#x7528;&#x6B64;&#x5C5E;&#x6027;&#x6765;&#x8BBE;&#x7F6E;flex-direction&#x5B9A;&#x4E49;&#x65B9;&#x5411;&#x4E0A;&#x7684;&#x5782;&#x76F4;&#x65B9;&#x5411;&#x7684;&#x5206;&#x5E03;&#x65B9;&#x5F0F;  </p>
<p>align-content : flex-start | flex-end | center | space-between | space-around | stretch<br>&#x8BBE;&#x7F6E;&#x591A;&#x884C;&#x5B50;&#x5143;&#x7D20;&#x5728;&#x884C;&#x65B9;&#x5411;&#x4E0A;&#x7684;&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;  </p>
<p>2&#x3001;&#x6761;&#x76EE;&#x5C5E;&#x6027;<br>flex  :  none | &lt;&apos; flex-grow &apos;&gt; &lt;&apos; flex-shrink &gt;&apos;? || &lt;&apos; flex-basis &apos;&gt;<br>&#x540C;&#x65F6;&#x8BBE;&#x7F6E;flex-grow &#x548C; flex-shrink &#x4EE5;&#x53CA;  flex-basis  </p>
<p>flex-grow &#xFF1A; number<br>&#x8868;&#x793A;&#x7684;&#x662F;&#x5F53;&#x7236;&#x5143;&#x7D20;&#x6709;&#x591A;&#x4F59;&#x7684;&#x7A7A;&#x95F4;&#x65F6;&#xFF0C;&#x8FD9;&#x4E9B;&#x7A7A;&#x95F4;&#x5728;&#x4E0D;&#x540C;&#x5B50;&#x5143;&#x7D20;&#x4E4B;&#x95F4;&#x7684;&#x5206;&#x914D;&#x6BD4;&#x4F8B;  </p>
<p>flex-shrink&#xFF1A; number<br>&#x5F53;&#x7236;&#x5143;&#x7D20;&#x7684;&#x7A7A;&#x95F4;&#x4E0D;&#x8DB3;&#x65F6;&#xFF0C;&#x5404;&#x4E2A;&#x5B50;&#x5143;&#x7D20;&#x7684;&#x5C3A;&#x5BF8;&#x7F29;&#x5C0F;&#x7684;&#x6BD4;&#x4F8B;  </p>
<p>flex-basis &#xFF1A;length | percentage | auto | content<br>&#x7528;&#x6765;&#x786E;&#x5B9A;&#x5F39;&#x6027;&#x6761;&#x76EE;&#x7684;&#x521D;&#x59CB;&#x4E3B;&#x8F74;&#x5C3A;&#x5BF8;&#x3002;  </p>
<p>align-self &#xFF1A;auto | flex-start | flex-end | center | baseline | stretch<br>&#x8986;&#x5199;&#x7236;&#x5143;&#x7D20;&#x6307;&#x5B9A;&#x7684;&#x5BF9;&#x9F50;&#x65B9;&#x5F0F;  </p>
<p>order : integer<br>&#x6539;&#x53D8;&#x6761;&#x76EE;&#x5728;&#x5BB9;&#x5668;&#x4E2D;&#x7684;&#x51FA;&#x73B0;&#x987A;&#x5E8F;  </p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../08/mds/section02.html" class="navigation navigation-prev " aria-label="Previous page: HTML5 音频和视频"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../08/mds/section05.html" class="navigation navigation-next " aria-label="Next page: 移动端布局实例"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
